package com.xjscrm.console.entity;

import lombok.Data;

/**
 * 聊天记录(ChatTalkRecord)表实体类
 *
 * @author szl
 * @since 2024-04-26 14:16:54
 */
@Data
public class ChatTalkRecord {
    //主键id
    private Long id;
    //运营商id
    private Long merId;
    //机器人id
    private Long deviceUniqueId;
    //聊天回话id
    private Long talkSessionId;
    //回话id/可以是好友微信id或群聊id
    private String conversationId;
    //发送人的微信id, 群聊时一般会有值
    private String sendWxId;
    //发送人名称
    private String sendWxName;
    //消息来源: 2020:接受,2021:回复
    private Integer source;
    //发送内容
    private String content;
    //消息类型: 1:文本, 2:图片, 4:视频, 6:链接, 8:文件, 9:名片, 13:小程序, 14:表情
    private Integer contentType;
    //发送时间
    private Integer sendTime;
    //微信/企微发送时间
    private Integer wxSendTime;
    //发送状态. 1010:发送中, 1011:发送成功, 1012:发送失败
    private Integer sendStatus;
    //消息id
    private Long msgId;
    //远程消息id
    private Long remoteMsgId;
    //是否撤回, 0:未撤回, 1:撤回
    private Integer recall;
    //创建时间
    private Integer createTime;
    //创建人
    private Long createBy;

}

